package cn.wolfcode.car.business.service;

import cn.wolfcode.car.business.domain.Appointment;
import cn.wolfcode.car.business.domain.Employee;
import cn.wolfcode.car.business.domain.Statement;
import cn.wolfcode.car.business.query.AppointmentQuery;
import cn.wolfcode.car.common.base.domain.Ztree;
import cn.wolfcode.car.common.base.page.TablePageInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 养修预约记录接口
 */
public interface IAppointmentService extends IService<Appointment> {

    /**
     * 分页
     * @param qo
     * @return
     */
    TablePageInfo<Appointment> query(AppointmentQuery qo);

    /**
     * 更新
     * @param appointment
     */
    void update(Appointment appointment);

    /**
     *  批量删除
     * @param ids
     */
    void deleteBatch(String ids);

    /**
     * 到店
     * @param id
     * @param statusArrival
     */
    void arrival(Long id, Integer statusArrival);

    /**
     * 取消预约单
     * @param id
     * @param statusCancel
     */
    void cancel(Long id, Integer statusCancel);

    Statement generateStatement(Long appointmentId);

    /**
     * 更新客户的状态为已结算状态
     * @param appointmentId
     * @param statusSettle
     */
    void updateStatus(Long appointmentId, Integer statusSettle);
}
